﻿using System.Xml.Serialization;

/**
 * 
 * <weeklytrackchart user="ridomin" from="1260750271" to="1261355071">
    <track rank="1">
    <artist mbid="ebfc1398-8d96-47e3-82c3-f782abcdb13d">The Beach Boys</artist>
    <name>Let's Go Away for Awhile</name>
    <mbid></mbid>
    <playcount>3</playcount>
    <url>www.last.fm/music/The+Beach+Boys/_/Let%27s+Go+Away+for+Awhile</url>
    </track>
 * 
 */

namespace Ridofy.LastFm
{
    [XmlRoot("weeklytrackchart")]
    public struct WeeklyTrackChart
    {
        [XmlElement("track")] 
        public Track[] Tracks;
    }

    //public struct Track
    //{
    //    [XmlElement("artist")] 
    //    public Artist Artist;
    //    [XmlElement("name")] 
    //    public string Title;
    //    [XmlElement("playcount")] 
    //    public int PlayCount;

    //    // These elements are available in the API but useless and almost always null...

    //    //[XmlElement("mbid")] 
    //    //public string MusicBrainzId;
    //    //[XmlElement("url")]
    //    //public string Url;
    //}

    //public struct Artist
    //{
    //    [XmlText] 
    //    public string Name;

    //    // Ditto here

    //    //[XmlAttribute("mbid")] 
    //    //public string MusicBrainzId;
    //}
}